package com.wzm.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wzm.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类domain：部门
 */
@Data
public class Department extends BaseDomain<Department> {


    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long parent_id;
    private Department parent;
    private Long manager_id;
    private Employee manager;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();


}
